//
//  FitureCustomPresentMaskView.swift
//  taurus
//
//  Created by dyoung on 2022/2/7.
//  Copyright © 2022 com.fiture. All rights reserved.
//

import Foundation
import UIKit

class FitureCustomPresentMaskView: UIView {

    var touchesBeganBlock: (() -> Void)?

    override init(frame: CGRect) {
        super.init(frame: frame)
        backgroundColor = UIColor.black
        alpha = 0
        tag = 1001
    }

    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        if let block = touchesBeganBlock {
            block()
        }
    }

}
